Pod::Spec.new do |s|
  # 上传到私有库
  #验证方法1：pod lib lint CJCollectionViewLayout.podspec --sources='https://github.com/CocoaPods/Specs.git,https://gitee.com/dvlproad/dvlproadSpecs' --allow-warnings --use-libraries --verbose
  #验证方法2：pod lib lint CJCollectionViewLayout.podspec --sources=master,dvlproad --allow-warnings --use-libraries --verbose
  #提交方法： pod repo push dvlproad CJCollectionViewLayout.podspec --sources=master,dvlproad --allow-warnings --use-libraries --verbose

  # 上传到开源库
	#验证方法1：pod lib lint CJCollectionViewLayout.podspec --sources='https://github.com/CocoaPods/Specs.git,https://gitee.com/dvlproad/Specs' --allow-warnings --use-libraries --verbose
  #验证方法2：pod lib lint CJCollectionViewLayout.podspec --sources=master,dvlproadPublicSpec --allow-warnings --use-libraries --verbose
  #提交方法： pod repo push dvlproadPublicSpec CJCollectionViewLayout.podspec --sources=master,dvlproadPublicSpec --allow-warnings --use-libraries --verbose
  s.name         = "CJCollectionViewLayout"
  s.version      = "0.2.5"
  s.summary      = "可通过设置每行个数来进行布局的自定义的flowLayout"
  s.homepage     = "https://gitee.com/dvlpPublic/iOS.git"

  #s.license      = "MIT"
  s.license      = {
    :type => 'Copyright',
    :text => <<-LICENSE
              © 2008-2020 dvlproad. All rights reserved.
    LICENSE
  }

  s.author   = { "dvlproad" => "" }
  

  s.description  = <<-DESC
 				           -、FlowLayout

                   A longer description of CJCollectionViewLayout in Markdown format.

                   * Think: Why did you write this? What is the focus? What does it do?
                   * CocoaPods will be using this to generate tags, and improve search results.
                   * Try to keep it short, snappy and to the point.
                   * Finally, don't worry about the indent, CocoaPods strips it!
                   DESC
  

  s.platform     = :ios, "9.0"
 
  s.source       = { :git => "https://gitee.com/dvlpPublic/iOS.git", :tag => "CJCollectionViewLayout_0.2.5" }
  #s.source_files  = "CJDemoCommon/*.{h,m}"
  #s.source_files = "CJChat/TestOSChinaPod.{h,m}"

  s.frameworks = "UIKit"

  s.requires_arc = true

  # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
  # s.dependency "JSONKit", "~> 1.4"

  

  s.subspec 'FlowLayout' do |ss|
    ss.source_files = "CJCollectionViewLayout/FlowLayout/**/*.{h,m}"
  end

  # 水平滚动且计数为从一行一行计算的布局
  s.subspec 'HorizontalLayout' do |ss|
    ss.source_files = "CJCollectionViewLayout/HorizontalLayout/**/*.{h,m}"
    ss.dependency "CJCollectionViewLayout/FlowLayout"
  end

  s.subspec 'WaterLayout' do |ss|
    ss.source_files = "CJCollectionViewLayout/WaterLayout/**/*.{h,m}"
  end

  # 两种cell：主mainCell、次subCell
  s.subspec 'MainSubLayout' do |ss|
    ss.source_files = "CJCollectionViewLayout/MainSubLayout/**/*.{h,m}"
  end

  # 三种cell：主mainCell、次subCell、最后的角落cell
  s.subspec 'MainSubLastLayout' do |ss|
    ss.source_files = "CJCollectionViewLayout/MainSubLastLayout/**/*.{h,m}"
  end

end
